module.exports = (mode) => {
    return {
        name: 'honor_core',
        beans: {
            "honor.handler.onBeforeSystemStart": {
                tags: ["handler", "onBeforeSystemStart", ],
                desc: "系统启动前",
                beanClass: mode == 'web' ? require('./bean/BeforeSystemStart') : '',
                mode: 'single',
            },

            "system.starter": {
                tags: ["system", "starter", ],
                desc: "系统启动器",
                beanClass: mode == 'web' ? require('./bean/SystemStarter') : '',
                mode: 'single',
            },

            "system.closer": {
                tags: ["system", "closer", ],
                beanClass: mode == 'web' ? require('./bean/SystemCloser') : '',
                mode: 'single',
            },

            "server.formatParam": {
                tags: ["server", "formatParam", ],
                beanClass: mode == 'web' ? require('./bean/formatParam') : '',
                mode: 'single',
            },

            "server.formatResult": {
                tags: ["server", "formatResult", ],
                beanClass: mode == 'web' ? require('./bean/formatResult') : '',
                mode: 'single',
            },

            "form.login": {
                tags: ["form", "login", ],
                desc: "登录",
                beanClass: mode == 'web' ? require('./bean/login/controller') : '',
                mode: 'single',
                config: {
                    element: 'yt_app',
                }
            },

            "form.main": {
                tags: ["form", "main", ],
                desc: "主页",
                beanClass: mode == 'web' ? require('./bean/main/controller') : '',
                mode: 'single',
                config: {
                    element: 'yt_app',
                }
            },

        },
    }
};
